Skip to content

feat(wasm-utxo): add PSBT fromNetworkFormat#264

Merged
OttoAllmendinger merged 1 commit intomasterfrom
BTC-0.hydrate-networktx
Apr 24, 2026
Merged

feat(wasm-utxo): add PSBT fromNetworkFormat#264
OttoAllmendinger merged 1 commit intomasterfrom
BTC-0.hydrate-networktx

Conversation

@OttoAllmendinger
Copy link
Copy Markdown
Contributor

Deprecate fromHalfSignedLegacyTransaction in favor of fromNetworkFormat,
which accepts unsigned, half-signed, and fully-signed transactions.
Signature-count enforcement moves to callers.

The new API parses fixed-script inputs (multisig or replay protection)
and applies signatures using either positional slot indices (if any
OP_0 placeholders exist) or ECDSA verification against wallet pubkeys
(if all slots are compact). This enables hydration of finalized
transactions that were previously rejected by the legacy parser.

For Zcash, use ZcashBitGoPsbt.fromNetworkFormat with block height or
explicit consensus branch ID. All legacy variants delegate to the new
implementation internally for backward compatibility.

Issue: BTC-0

Co-authored-by: llm-git llm-git@ttll.de

@OttoAllmendinger OttoAllmendinger force-pushed the BTC-0.hydrate-networktx branch from 36f37e6 to ab2ad4e Compare April 24, 2026 13:21
Deprecate fromHalfSignedLegacyTransaction in favor of fromNetworkFormat,
which accepts unsigned, half-signed, and fully-signed transactions.
Signature-count enforcement moves to callers.

The new API parses fixed-script inputs (multisig or replay protection)
and applies signatures using either positional slot indices (if any
OP_0 placeholders exist) or ECDSA verification against wallet pubkeys
(if all slots are compact). This enables hydration of finalized
transactions that were previously rejected by the legacy parser.

For Zcash, use ZcashBitGoPsbt.fromNetworkFormat with block height or
explicit consensus branch ID. All legacy variants delegate to the new
implementation internally for backward compatibility.

Issue: BTC-0

Co-authored-by: llm-git <llm-git@ttll.de>
@OttoAllmendinger OttoAllmendinger force-pushed the BTC-0.hydrate-networktx branch from ab2ad4e to 9405b00 Compare April 24, 2026 16:52
@OttoAllmendinger OttoAllmendinger marked this pull request as ready for review April 24, 2026 17:03
@OttoAllmendinger OttoAllmendinger requested a review from a team as a code owner April 24, 2026 17:03
@OttoAllmendinger OttoAllmendinger merged commit 75ccf91 into master Apr 24, 2026
16 checks passed
@OttoAllmendinger OttoAllmendinger deleted the BTC-0.hydrate-networktx branch April 24, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants